<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

    <!-- Bootstrap -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <title>index</title>
</head>
<body>
<div class="container">
    <div class="row">
        <form class="form-horizontal" role="form" action="/configDispatcher" method="post">
            <div class="col-md-6 col-md-offset-3">
                <div class="form-group">
                    <label for="centerIp" class="col-md-4 control-label">注册中心地址: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="centerIp" name="centerIp" placeholder="${centerIp}"
                               value="${centerIp}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="centerIp" class="col-md-4 control-label">注册中心端口: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="centerPort" name="centerPort"
                               placeholder="${centerPort}"
                               value="${centerPort}">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">提交</button>
                    </div>
                </div>
            </div>
        </form>
    </div>


    <div class="row">
        <form class="form-horizontal" role="form" action="/configDispatcher" method="post">
            <div class="col-md-6 col-md-offset-3">
                <div class="form-group">
                    <label for="initUrl" class="col-md-4 control-label">出始种子网址: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="initUrl" name="initUrl" placeholder="http://www.zhihu.com/explore"
                               value="${initUrl}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="regex" class="col-md-4 control-label">正则表达式: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="regex" name="regex"
                               placeholder="http://www.zhihu.com/question/[0-9]+"
                               value="${regex}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="timeout" class="col-md-4 control-label">超时时间: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="timeout" name="timeout" placeholder="2000"
                               value="${timeout}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="sleepTime" class="col-md-4 control-label">服务器请求过快等待时间: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="sleepTime" name="sleepTime"
                               placeholder="1000"
                               value="${sleepTime}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="waitTime" class="col-md-4 control-label">默认等待时间: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="waitTime" name="waitTime" placeholder="1000"
                               value="${waitTime}">
                    </div>
                </div>

                <div class="form-group">
                    <label for="file" class="col-md-4 control-label">用户处理文件: </label>

                    <div class="col-md-8">
                        <input type="text" class="form-control" id="file" name="file"
                               placeholder="类名 com.sinaapp.gavinzhang.GSpider.DefaultPageProcessor" value="${file}">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">提交</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <a class="btn btn-default" href="/" role="button">返回首页</a>
        </div>
    </div>
</div>
</body>
</html>